# $Id: PKGBUILD 86997 2013-03-25 19:16:33Z bpiotrowski $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: tuxbubling <tuxbubling@jabber.fr>

pkgname=cacti
pkgver=0.8.8_a
pkgrel=3
pkgdesc="complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality"
arch=(any)
url="http://www.cacti.net"
license=('GPL')
depends=('rrdtool' 'mariadb' 'php' 'php-gd' 'net-snmp' 'xorg-fonts-100dpi')
backup=('etc/webapps/cacti/.htaccess')
install=cacti.install
source=("http://www.cacti.net/downloads/$pkgname-${pkgver/_/}.tar.gz")
md5sums=('a4da682dab9a88a2e0edb1728bf531ae')

package() {
  mkdir -p $pkgdir/usr/share/webapps/cacti $pkgdir/etc/webapps/cacti
  mv $srcdir/$pkgname-${pkgver/_/}/* $pkgdir/usr/share/webapps/cacti
  echo "deny from all" >> $pkgdir/etc/webapps/cacti/.htaccess
  ln -s /etc/webapps/cacti/.htaccess $pkgdir/usr/share/webapps/cacti/.htaccess
}
